# -*- coding: UTF-8 -*-

import datetime

year_format = "%Y"
month_format = "%Y.%m"
day_format = "%Y.%m.%d"
min_format = "%Y.%m.%d %H:%M"
second_format = "%Y.%m.%d %H:%M:%S"

def getNow(**kwargs):
    return (datetime.datetime.now() + datetime.timedelta(days=0 if kwargs.get('addDays') is None else kwargs.get('addDays')))\
        .strftime(second_format if kwargs.get('format') is None else kwargs.get('format'))